<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>后台管理-广告管理</title>
		<link rel="stylesheet" type="text/css" href="__CSS__/advdeal.css">
		<script type="text/javascript" src="__JS__/jquery-3.6.0.min.js"></script>
		<script type="text/javascript" src="__JS__/jquery.validate.min.js"></script>
		<script type="text/javascript">
		    $(document).ready(function(){
		        $("#menu_pop_out").hide();
		        $("#pop_out_father").mouseover(function(){
		            $("#menu_pop_out").show();
		        });
		        $("#pop_out_father").mouseout(function(){
		            $("#menu_pop_out").hide();
		        });
		    });
		</script>
	</head>
	<body>
		<div>
			<!-- 顶部 -->
				<div class="top">
					<img src="__IMG__/tx.jpg" />
					<span class="top-1">论坛后台管理</span>
					<span class="top-2">欢迎您：{:session('uName')}</span>
				</div>
			<!-- 导航栏 -->
				<div class="navbar">
					<ul>
						<li><a href="{:url('deal/mesdeal')}">帖子管理</a></li>
						<li><a href="{:url('deal/userdeal')}">用户管理</a></li>
						<li><a href="{:url('deal/secdeal')}">版块管理</a></li>
						<li><a href="{:url('deal/bindeal')}">回收站管理</a></li>
						<li><a href="{:url('advdeal/advdeal')}">广告管理</a></li>
						<li><a href="{:url('advdeal/boxdeal')}">轮播图管理</a></li>
						<li><a href="{:url('admin/apa')}">修改密码</a></li>
						<li><a href="{:url('admin/alogout')}">注销</a></li>
						<li><a href="/mamx28/public/index.php/mamx_forum/Mamx">论坛前台</a></li>
					</ul>
				</div>
				<!-- 广告栏 -->
				<div class="addadv">
					<span>广告管理</span>
					<input type="button" value="添加广告"  onclick="window.location.href='{:url('advdeal/advadd')}'" class="add">
					<form method="post" action="{:url('advdeal/advdeal',['search' => input('search')])}" class="search">
						<input type="text" name="search" class="search1">
						<input type="submit" value="搜 索" class="search2">
					</form>
				</div>
				<!-- 显示广告信息 -->
				<div class="showadv">
					<table>
						<tr class="showhead">
							<td>序号</td>
							<td>图片</td>
							<td>标题 | 发布时间</td>
							<td>文字介绍</td>
							<td>指向地址mid</td>
							<td>操作</td>
						</tr>
						{volist name="adv" id="advRow"}
						<tr class="show">
							<td>{$i}</td>
							<td><img src="__UPLOAD__/{$advRow.a_img}" style="width: 150px;height: 70px;"></td>
							<td>
								<span style="font-weight: bold;">{$advRow.a_title}</span>
								<br>
								<span style="color: #6E6E6E;">{$advRow.a_time|date="Y-m-d     H:i:s"}</span>
							</td>
							<td>{$advRow.a_content}</td>
							<td>{$advRow.a_mid}</td>
							<td class="edtior">
								<a href="{:url('advdeal/advinfo',['aid'=>$advRow.a_id])}" style="color: #6897BB;">修改</a> | 
								<a href="{:url('advdeal/advok',['aid'=>$advRow.a_id])}" style='color:{$advRow.checkcolor}'>{$advRow.a_check}</a> | 
								<a href="{:url('advdeal/advstop',['aid'=>$advRow.a_id])}" style='color:{$advRow.stopcolor}'>{$advRow.a_stop}</a> | 
								<a href="{:url('advdeal/advdel',['aid'=>$advRow.a_id])}" style="color: #789339;">彻底删除</a>
							</td>
						</tr>
						{/volist}
					</table>
				</div>
			</div>
	</body>
</html>
